package com.engineering.elink.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.engineering.elink.dao.RegionMapper;
import com.engineering.elink.service.RegionService;

@Service
public class RegionServiceImpl implements RegionService{

	@Autowired
	private RegionMapper regionMapper;
	
	@Override
	public List<Map<String, Object>> getAllList() {
		return regionMapper.selectAll();
	}

	@Override
	public List<Map<String, Object>> getListByProvinceId(int provinceId) {
		return regionMapper.selectByProvinceId(provinceId);
	}

	@Override
	public List<Map<String, Object>> getHotRegionList() {
		return regionMapper.selectHotRegion();
	}

}
